home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / PartMaker 4.4 / PartMaker Documents / Script Runner• / Script Runner•.rsrc / dFRK_5056 < prev    next >
Encoding:
Text File  |  1995-12-12  |  4.7 KB  |  205 lines

  1. /*------------------------------------------------------------------------------
  2.     File:        ScriptRunner.idl
  3.  
  4.     Contains:    ScriptRunner object interface
  5.  
  6.     Written by:    Sue Dumont
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. ------------------------------------------------------------------------------*/
  10.  
  11. #ifndef _SCRIPTRUNNER_
  12. #define _SCRIPTRUNNER_
  13.  
  14. #ifndef _PART_
  15. #include "Part.idl"
  16. #endif
  17.  
  18. #ifndef _SCRIPTRUNNERVERS_
  19. #include "ScriptRunnerVers.h"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes used by this interface
  24. //==============================================================================
  25.  
  26. interface    ODSession;
  27. interface    ODWindow;
  28. interface    ODFrame;
  29. interface    ODFacet;
  30. interface    ODExtension;
  31. interface    ODStorageUnit;
  32.  
  33. #ifdef __PRIVATE__
  34. //==============================================================================
  35. // Implementation Types
  36. //==============================================================================
  37.  
  38. typedef somToken Str63;
  39. #endif 
  40.  
  41. //==============================================================================
  42. #pragma somemittypes on
  43.  
  44. const ODISOStr kScriptRunner = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:Kind:ScriptRunner";
  45.  
  46.  
  47. //==============================================================================
  48. // ScriptRunner SOM Class
  49. //==============================================================================
  50.  
  51. module SampleCode
  52. {
  53. interface ScriptRunner : ODPart
  54. {
  55.     void            ShowPalette();
  56.     void            HidePalette();
  57.     ODBoolean        IsPaletteVisible();
  58.     ODBoolean        MovePalette(in ODPoint point);
  59.     ODPoint*        GetPaletteLocation();
  60.     void            SetClient(in ODPart client);
  61.     
  62. #ifdef __PRIVATE__
  63.     void            Initialize(in ODStorageUnit storageUnit);
  64.     void            CheckAndAddProperties(in ODStorageUnit storageUnit);
  65.     ODWindow        CreateWindow(in ODTypeToken presentation, in ODSShort procID,
  66.                                     in Str63 windowTitle, in Rect windowBounds);
  67.     ODWindow        CreateResultWindow();
  68.     ODBoolean        IsResultWindowVisible();
  69.     ODWindow        ShowResultWindow();
  70.     void            HideResultWindow();
  71.     void            DisplayResult();
  72.     ODWindow        AcquireWindowByID(in ODID windowID);
  73.     ODBoolean        HandleWindowEvent(in ODEventData event, in ODFrame frame);
  74.     ODBoolean        HandleMouseEvent(in ODEventData event, in ODEventInfo eventInfo,
  75.                                     in ODFrame frame, in ODFacet facet);
  76.     void            HandleMouseUp(in ODEventInfo eventInfo, in ODFrame frame);
  77.     void            HandleMouseDown(in ODEventInfo eventInfo, in ODFacet facet);
  78.     void            HandleOSAEvent(in ODFrame frame, in ODCommandID comand);
  79.     void            LoadPalette();
  80.     void            SetClientTextData();    
  81.     void            DoErrorDialog(in ODFrame frame);
  82.     ODDropResult    InitiateDrag(in ODEventData event, in ODFacet facet, inout ODPoint where);
  83.     ODRgnHandle        CreateDragRegion(in ODFacet facet);    
  84. #endif //_PRIVATE_
  85.  
  86. #ifdef __SOMIDL__
  87.   implementation
  88.     {
  89.         majorversion = somClassMajorVersion;
  90.         minorversion = somClassMinorVersion;
  91.  
  92.         functionprefix = ScriptRunner__;
  93.  
  94.         override:
  95.             somInit,
  96.             somUninit,
  97.             AcquireExtension,
  98.             HasExtension,
  99.             ReleaseExtension,
  100.             Purge,
  101.             Release,            
  102.             ReleaseAll,
  103.             AbortRelinquishFocus,
  104.             ContainingPartPropertiesUpdated,
  105.             AdjustMenus,
  106.             AttachSourceFrame,
  107.             BeginRelinquishFocus,
  108.             CanvasChanged,
  109.             CanvasUpdated,
  110.             ChangeKind,
  111.             ClonePartInfo,
  112.             CommitRelinquishFocus,
  113.             DisplayFrameAdded,
  114.             DisplayFrameClosed,
  115.             DisplayFrameConnected,
  116.             DisplayFrameRemoved,
  117.             Draw,
  118.             ExternalizeKinds,
  119.             FacetAdded,
  120.             FacetRemoved,
  121.             FocusAcquired,
  122.             FocusLost,
  123.             FrameShapeChanged,
  124.             GeometryChanged,
  125.             GetPrintResolution,
  126.             HandleEvent,
  127.             HighlightChanged,
  128.             InitPart,
  129.             InitPartFromStorage,
  130.             LinkStatusChanged,
  131.             Open,
  132.             PresentationChanged,
  133.             ReadPartInfo,
  134.             SequenceChanged,
  135.             ViewTypeChanged,
  136.             WritePartInfo;
  137.             
  138.         releaseorder:
  139.             CreatePalette,
  140.             ShowPalette,
  141.             HidePalette,
  142.             IsPaletteVisible,
  143.             MovePalette,
  144.             GetPaletteLocation,
  145.             SetClient,
  146.  
  147. #ifdef __PRIVATE__
  148.             Initialize,
  149.             CheckAndAddProperties,
  150.             CreateWindow,
  151.             CreateResultWindow,
  152.             IsResultWindowVisible,
  153.             ShowResultWindow,
  154.             HideResultWindow,
  155.             DisplayResult,
  156.             AcquireWindowByID,
  157.             HandleWindowEvent,
  158.             HandleMouseEvent,
  159.             HandleMouseUp,
  160.             HandleMouseDown,
  161.             HandleOSAEvent,
  162.             LoadPalette,
  163.             SetClientTextData,
  164.             DoErrorDialog,
  165.             InitiateDrag,
  166.             CreateDragRegion;
  167. #else
  168.             reserved1,
  169.             reserved2,
  170.             reserved3,
  171.             reserved4,
  172.             reserved5,
  173.             reserved6,
  174.             reserved7,
  175.             reserved8,
  176.             reserved9,
  177.             reserved10,
  178.             reserved11,
  179.             reserved12,
  180.             reserved13,
  181.             reserved14,
  182.             reserved15,
  183.             reserved16,
  184.             reserved17,
  185.             reserved18,
  186.             reserved19;
  187. #endif
  188.  
  189. #ifdef __PRIVATE__
  190.  
  191.         ODPart                    fSelf;
  192.         ODSLong                    fButton;
  193.         ODScriptingConnection    fScriptConnection;
  194.  
  195. #endif // __PRIVATE__
  196.   };
  197.  
  198. #endif __SOMIDL__
  199.  };    
  200. };
  201.  
  202. #pragma somemittypes off
  203.  
  204. #endif __SCRIPTRUNNER__
  205.